package com.opgea.crm.common.vo;

public class ProjectDocumentVo {
	
	private long documentId;
	private String documentName;
	private String receiveDate;
	private String fileName;
	private long fileSize;
	private String documentType;
	private String uploadDate;
	private String uploadedBy;
	private String fileContent;
	
	
	public long getDocumentId() {
		return documentId;
	}
	public void setDocumentId(long documentId) {
		this.documentId = documentId;
	}
	public String getDocumentName() {
		return documentName;
	}
	public void setDocumentName(String documentName) {
		this.documentName = documentName;
	}
	public String getReceiveDate() {
		return receiveDate;
	}
	public void setReceiveDate(String receiveDate) {
		this.receiveDate = receiveDate;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public long getFileSize() {
		return fileSize;
	}
	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	public String getDocumentType() {
		return documentType;
	}
	public void setDocumentType(String documentType) {
		this.documentType = documentType;
	}
	public String getUploadDate() {
		return uploadDate;
	}
	public void setUploadDate(String uploadDate) {
		this.uploadDate = uploadDate;
	}
	public String getUploadedBy() {
		return uploadedBy;
	}
	public void setUploadedBy(String uploadedBy) {
		this.uploadedBy = uploadedBy;
	}
	public String getFileContent() {
		return fileContent;
	}
	public void setFileContent(String fileContent) {
		this.fileContent = fileContent;
	}
	
	public ProjectDocumentVo(){
		super();
	}
	
	public ProjectDocumentVo(long documentId, String documentName,
			String receiveDate, String fileName, long fileSize,
			String documentType, String uploadDate, String uploadedBy) {
		super();
		this.documentId = documentId;
		this.documentName = documentName;
		this.receiveDate = receiveDate;
		this.fileName = fileName;
		this.fileSize = fileSize;
		this.documentType = documentType;
		this.uploadDate = uploadDate;
		this.uploadedBy = uploadedBy;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (documentId ^ (documentId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProjectDocumentVo other = (ProjectDocumentVo) obj;
		if (documentId != other.documentId)
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "ProjectDocumentVo [documentId=" + documentId
				+ ", documentName=" + documentName + ", documentType="
				+ documentType + ", fileContent=" + fileContent + ", fileName="
				+ fileName + ", fileSize=" + fileSize + ", receiveDate="
				+ receiveDate + ", uploadDate=" + uploadDate + ", uploadedBy="
				+ uploadedBy + "]";
	}

	
}
